package com.spl.mcm.models;

import com.spl.mcm.views.ListItem;

import android.graphics.Bitmap;

public class Intercept implements ListItem{
	
	public enum InterceptType {
		SMS_INTERCEPT,
		CALL_INTERCEPT,
		ALL_INTERCEPT
	}
	
	public enum InterceptWay {
		REJECT_ALL,
		RECORD
	}
	
	protected String m_name;
	/**
	 * @return the m_name
	 */
	public String getName() {
		return m_name;
	}

	/**
	 * @param m_name the m_name to set
	 */
	public void setName(String m_name) {
		this.m_name = m_name;
	}

	/**
	 * @return the m_number
	 */
	public String getNumber() {
		return m_number;
	}

	/**
	 * @param m_number the m_number to set
	 */
	public void setNumber(String m_number) {
		this.m_number = m_number;
	}

	/**
	 * @return the m_type
	 */
	public InterceptType getType() {
		return m_type;
	}

	/**
	 * @param m_type the m_type to set
	 */
	public void setType(InterceptType m_type) {
		this.m_type = m_type;
	}

	/**
	 * @return the m_way
	 */
	public InterceptWay getWay() {
		return m_way;
	}

	/**
	 * @param m_way the m_way to set
	 */
	public void setWay(InterceptWay m_way) {
		this.m_way = m_way;
	}

	protected String m_number;
	protected InterceptType m_type;
	protected InterceptWay m_way;
	
	public Intercept (String name, String number, InterceptType type, InterceptWay way) {
		this.m_name = name;
		this.m_number = number;
		this.m_type = type;
		this.m_way = way;
	}

	@Override
	public String getTitle() {
		return this.getName();
	}

	@Override
	public String getSubTitle() {
		return this.getNumber();
	}

	@Override
	public String getAdditionInfor() {
		return this.getWay().name();
	}

	@Override
	public Bitmap getImage() {
		// TODO Auto-generated method stub
		return null;
	}
}
